package bean;

/**
 * Bean which represents a position in an order
 * @author Martin Schophaus
 */
public class LineItem {
	private Article article;
	private int position_id;
	private int amount;
	private double price;
	
	public LineItem(Article article, int position_id, int amount, double price) {
		this.setArticle(article);
		this.setPosition_id(position_id);
		this.setAmount(amount);
		this.setPrice(price);
	}
	public Article getArticle() {
		return article;
	}
	public void setArticle(Article article) {
		this.article = article;
	}
	public int getPosition_id() {
		return position_id;
	}
	public void setPosition_id(int position_id) {
		this.position_id = position_id;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	
	
}
